from base.base import Base
from utils.generate_logs_util import get_log
logger = get_log(__name__)

class page_reconciliationerror_search(Base):
    reconciliation_manages = 'reconciliation_manages'

    def __init__(self,driver,yaml_path):
        super().__init__(driver,yaml_path,self.reconciliation_manages)

    def reconciliationerror_search_01(self):
        """根据开始和结束时间查询"""
        self.click('reconciliation_manage')
        logger.info('对账管理菜单')
        self.click('reconciliation_error_list')
        logger.info('对账差错列表')
        self.click('bill_start_time')
        self.click('choice_time')
        self.click('sure_startandend_time')
        logger.info('账单开始时间')
        self.click('bill_end_time')
        self.click('choice_time')
        self.click('sure_startandend_time')
        logger.info('账单结束时间')
        self.click('error_search_button')
        logger.info('查询')

    def reconciliationerror_search_02(self):
        """未填写账单结束时间"""
        self.click('reconciliation_manage')
        logger.info('对账管理菜单')
        self.click('reconciliation_error_list')
        logger.info('对账差错列表')
        self.click('bill_start_time')
        self.click('choice_time')
        self.click('sure_startandend_time')
        logger.info('账单开始时间')
        self.click('error_search_button')
        logger.info('查询')

    def reconciliationerror_search_03(self):
        """未填写账单开始时间"""
        self.click('reconciliation_manage')
        logger.info('对账管理菜单')
        self.click('reconciliation_error_list')
        logger.info('对账差错列表')
        self.click('bill_end_time')
        self.click('choice_time')
        self.click('sure_startandend_time')
        logger.info('账单结束时间')
        self.click('error_search_button')
        logger.info('查询')







